// import {NO} from 'constants/'

function Modal(flag) {
  return (state = false, action)=> {
    switch(action.type) {
      case `${flag}_MODAL`:
        return action.show
    }
    return state
  }
}

module.exports = Modal
